home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / ASSPOINT.422 < prev    next >
Text File  |  1993-02-09  |  4KB  |  144 lines

  1. SM0001.MOD
  2. Squire Malcolm #1 @16216
  3. Thu Feb 04 02:39:03 1993
  4. ┌───────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name  : Ass point Enable     Mod Author: Squire MalColm 1@6216 WWIVnet│
  6. │                                                           1@16216 WWIVLink│
  7. │ Difficulty: Easy                 Date      : 03FEB93                      │
  8. │                                                                           │
  9. │ Version   : WWIV 4.22            File Name : SM00001.MOD                  │
  10. │                                                                           │
  11. │ Description: Sets ASS_PTS when user violates standard ASS_PTS things, or  │
  12. │              hangs up on system without using either 'O' or '/O', also it │
  13. │              automaticly lowers the SL and DSL 1 point per 10 ASS_PTS and │
  14. │              reduces ASS_PTS by 10.  It will display a standard message   │
  15. │              file called ASSPOINT.* to a user with 6+ ASS_PTS at logon.   │
  16. │                                                                           │
  17. └───────────────────────────────────────────────────────────────────────────┘
  18.  
  19.      This is my first mod, it is an easy one, but it runs great.  If you want
  20. to simplify the moding just search for 2add_ass0 in each of the files.
  21.  
  22. DISCLAIMER!!
  23.     I am not resposable for anything in relationship to this mod and its
  24. effects on your life in any way.
  25.  
  26.  
  27.     Legend:        /*+*/ = ADD LINE
  28.             /*-*/ = REMOVE LINE
  29.  
  30. ==============================================================================
  31.  
  32.     Pre-Step:  BACK UP YOUR SOURCE!
  33.  
  34. ==============================================================================
  35.  
  36. Step 1:
  37.  
  38. Load SR.C
  39.  
  40.     In the void send_file() find the folowing in send_file(...)
  41.  
  42.  
  43.   if ((*sent==0) && (ok==0))
  44.     if (percent==1.0) {
  45.       *sent=1;
  46. /*-*/ add_ass(10,get_stringx(1,65));
  47. /*+*/ add_ass(2,get_stringx(1,65));
  48.     } else {
  49.  
  50.     Save SR.C
  51.  
  52. ==============================================================================
  53.  
  54. Step 2:
  55.  
  56. Load XFER.C
  57.  
  58.     In the void upload() find
  59.  
  60.     if ((d.mask & mask_PD) && (ok)) {
  61.       nl();
  62.       prt(5,get_string(769));
  63.       if (!yn()) {
  64.     nl();
  65.     pl(get_string(770));
  66.     pl(get_string(771));
  67.     pl(get_string(772));
  68.     pl(get_string(773));
  69.     pl(get_string(774));
  70.     nl();
  71.     sprintf(s,get_stringx(1,41),u.filename);
  72. /*-*/   add_ass(5,s);
  73. /*+*/    add_ass(1,s);
  74.     ok=0;
  75.       } else
  76.  
  77.     save XFER.C
  78.  
  79. ==============================================================================
  80.  
  81. Step 3:
  82.  
  83. Load COM.C
  84.  
  85.     In void checkhangup() find
  86.  
  87.     if (!ok) {
  88.       hangup = hungup = 1;
  89. /*-*/ if (useron && !in_extern)
  90. /*+*/ if (useron && !in_extern) {  // add {
  91.     sysoplog(get_stringx(1,99));
  92. /*+*/   add_ass(3,get_stringx(1,99));
  93. /*+*/    }
  94.  
  95.  
  96.     Save COM.C
  97.  
  98. ==============================================================================
  99.  
  100. Step 4:
  101.  
  102. Load UTILITY.C
  103.  
  104.     In void add_ass() add this to the end
  105.  
  106.     while (thisuser.ass_pts > 10) {
  107.         thisuser.sl -= 1;
  108.         thisuser.dsl -= 1;
  109.         thisuser.ass_pts -= 10;
  110.         }
  111.  
  112.     Save UTILITY.C
  113.  
  114.  
  115. ==============================================================================
  116.  
  117. Step 5:
  118.  
  119. Load LILO.C
  120.  
  121.     In void logon(void) find
  122.  
  123.   if (incom && live_user) {
  124.     i=printfile("LOGON");
  125.     if ((!i) && (!(thisuser.sysstatus & sysstatus_pause_on_page)))
  126.       pausescr();
  127.   }
  128.     And add
  129.  
  130. /*+*/ if (thisuser.ass_pts >= 5)      // This sets the ass poit level to
  131. /*+*/   printfile("ASSPOINT");      // display this file to the user.
  132.  
  133.     Save LILO.C
  134.  
  135. ==============================================================================
  136.  
  137. Step 6:
  138.     Compile.
  139.  
  140.      That's it...
  141.  
  142. 2Squire MalColm0
  143.  
  144.